package iPaint;

public class Node {

	String name;
	float x, y, z;
	float radius;
	int type;
	String code;
	
	public Node() {
		
	}
	
	public Node(String tname,  float tx, float ty, float tz) {
		name = tname;
		x = tx;
		y = ty;
		z = tz;
		type = 0;
		code = new String("");
	}
	
	public Node(Node tNode) {
		name = tNode.getName();
		x = tNode.getX();
		y = tNode.getY();
		z = tNode.getZ();
	}

	public String getName() {
		return name;
	}

	public float getX() {
		return x;
	}

	public float getY() {
		return y;
	}

	public float getZ() {
		return z;
	}
	
	public void setX(float tx) {
		x = tx;
	}
	
	public void setY(float ty) {
		y = ty;
	}
	
	public void setZ(float tz) {
		z = tz;
	}
	
	public void setCode(String tcode) {
		code = tcode;
	}
	
	public String getCode() {
		return code;
	}
	
	public void setType(int ttype) {
		type = ttype;
	}
	
	public int getType() {
		return type;
	}
	
	public String genCode() {
		return code;
	}
}
